﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ChaoJiHTZD.aspx.cs" Inherits="Web.Pages.YongShui.BaoBiaoGL.DanJuDY.ChaoJiHTZD" Theme="Default" %>
<%@ Register Assembly="DevExpress.Web.v15.2, Version=15.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web" TagPrefix="dx" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>计划执行情况导出</title>
    <script src="../../../../JS/jquery.js" type="text/javascript"></script>
    <script src="../../../../JS/AddEditCancel.js" type="text/javascript"></script>
    <link href="../../../../css/inputBgColor.css" rel="stylesheet"/>
    <style type="text/css">
        body, html {
            font-size: 12px;
            margin: 0;
            padding: 0;
        }

        #img table tr td div { cursor: pointer; }


    </style>
    <script type="text/javascript">
        $(function() {
            var height = Math.max(0, document.documentElement.clientHeight) - 90;
            $("#condition").css("height", height);
        });

        function GVScrollToVisibleIndexOnClient(obj, index) {
            obj.SetVerticalScrollPosition(index * 25);
        }

    </script>
</head>
<body>
<form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
    <div class="tabletitle1" align="center">
        计划执行情况导出
    </div>
    <asp:UpdatePanel ID="updatePanel1" runat="server">
        <ContentTemplate>
            <div>
                <div>
                    <fieldset style="border: 1px solid #d0e4fe">
                        <div>
                            <div style="border: 1px solid #d0e4fe; float: left; width: 20%;" id="condition">
                                <table style="height: 270px; width: 100%;">
                                    <tr>
                                        <td style="text-align: right; width: 40%;">
                                            <span style="font-size: 12px;">区块名称：</span>
                                        </td>
                                        <td>
                                            <asp:Panel runat="server" ID="Panel2">
                                                <dx:ASPxComboBox runat="server" ID="cmbGuanLiK" Width="100%">
                                                </dx:ASPxComboBox>
                                            </asp:Panel>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="text-align: right; width: 30%;">
                                            <span style="font-size: 12px;">水量年月：</span>
                                        </td>
                                        <td>
                                            <dx:ASPxTextBox runat="server" ID="txtShuiLiangYM" Width="100%" ClientInstanceName="txtShuiLiangYM">
                                                <ClientSideEvents KeyUp="function(s,e){inputNum(s);}"/>
                                            </dx:ASPxTextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="2">
                                            <asp:Panel runat="server" ID="Panel6">
                                                <dx:ASPxComboBox runat="server" ID="cmbTZ1" Width="100%">
                                                    <Items>
                                                        <dx:ListEditItem Text="全部" Value="2" Selected="true"/>
                                                        <dx:ListEditItem Text="托收" Value="1"/>
                                                        <dx:ListEditItem Text="非托收" Value="0"/>
                                                    </Items>
                                                </dx:ASPxComboBox>
                                            </asp:Panel>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="2">
                                            <asp:Panel runat="server" ID="Panel5">
                                                <dx:ASPxComboBox runat="server" ID="cmbTZ2" Width="100%">
                                                    <Items>
                                                        <dx:ListEditItem Text="全部" Value="0" Selected="true"/>
                                                        <dx:ListEditItem Text="已调整" Value="1"/>
                                                        <dx:ListEditItem Text="未调整" Value="2"/>
                                                    </Items>
                                                </dx:ASPxComboBox>
                                            </asp:Panel>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>

                                            <dx:ASPxLoadingPanel runat="server" ID="LoadPanel11" ClientInstanceName="LoadPanel" Text="正在查询"></dx:ASPxLoadingPanel>
                                            <dx:ASPxButton runat="server" ID="btnChaXun" Text="查询" OnClick="btnChaXun_Click">
                                                <ClientSideEvents Click="function(s,e){LoadPanel.Show();}"/>
                                            </dx:ASPxButton>
                                        </td>
                                        <td>
                                            <dx:ASPxButton ID="btnExport2" runat="server" Text="导出EXCEL">
                                                <ClientSideEvents Click="function(s,e){btnExport.OnClick();}"/>
                                            </dx:ASPxButton>
                                        </td>
                                    </tr>

                                </table>
                            </div>
                        </div>
                        <div style="border: 1px solid #d0e4fe; float: right; width: 79%;">
                            <div>
                                <table>
                                    <tr>
                                        <td>
                                            <span style="font-size: 12px;">用户号：</span>
                                        </td>
                                        <td>
                                            <dx:ASPxTextBox ID="txtYongHuH" Width="100%" runat="server">
                                            </dx:ASPxTextBox>
                                        </td>
                                        <td style="padding-left: 5px;">
                                            <dx:ASPxButton ID="btnDingWei" runat="server" Text="定位" OnClick="btnDingWei_Click" UseSubmitBehavior="false">
                                            </dx:ASPxButton>
                                        </td>
                                        <td style="width: 20px;">&nbsp;</td>
                                        <td>
                                            <dx:ASPxLabel ID="zjl" Text="共0条" runat="server" ForeColor="Blue"></dx:ASPxLabel>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                            <div>
                                <dx:ASPxGridView ID="gvYongHuXX" ClientInstanceName="gvYongHuXX" runat="server" AutoGenerateColumns="False" KeyFieldName="S_YONGHUH"
                                                 ClientIDMode="AutoID" Settings-ShowVerticalScrollBar="true" Width="100%" EnableCallBacks="true">
                                    <Columns>
                                        <dx:GridViewDataTextColumn FieldName="S_YONGHUH" Caption="用户号" Width="15%">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn FieldName="I_SHIYONGSL" Caption="用水量" Width="15%">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn FieldName="I_JIAJIAL" Caption="加价水量" Width="15%">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn FieldName="N_JIAJIAJE" Caption="加价金额" Width="15%">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn FieldName="S_YONGHUM" Caption="用户名" Width="30%">
                                        </dx:GridViewDataTextColumn>

                                    </Columns>
                                    <Settings VerticalScrollBarMode="Visible" HorizontalScrollBarMode="Auto"/>
                                    <SettingsPager Mode="EndlessPaging" PageSize="100"/>
                                    <Settings ShowFooter="True"/>
                                    <SettingsBehavior AllowFocusedRow="True"/>
                                    <%--<SettingsBehavior ColumnResizeMode="NextColumn" />
                                        <SettingsBehavior AllowFocusedRow="True"  ColumnResizeMode="Control" />
                                        <Settings GridLines="Vertical" ShowFilterRow="false" />
                                        <Settings ShowHorizontalScrollBar="True" />
                                        <Settings VerticalScrollBarMode="Visible" VerticalScrollableHeight="400" />
                                        <SettingsPager  PageSize="15"  />
                                        <%--<SettingsBehavior ColumnResizeMode="NextColumn" />
                                        <SettingsBehavior AllowFocusedRow="True"  ColumnResizeMode="Control" />
                                        <Settings ShowHorizontalScrollBar="True" />
                                        --%>
                                    <%--<ClientSideEvents FocusedRowChanged="function(s,e){rowClick();}" />--%>
                                    <SettingsBehavior ProcessFocusedRowChangedOnServer="false"/>
                                    <ClientSideEvents Init="function(s,e){AdjustSize(250,gvYongHuXX);}"/>
                                </dx:ASPxGridView>
                            </div>
                            <br/>
                            <hr/>

                        </div>
                    </fieldset>
                </div>
            </div>
        </ContentTemplate>

    </asp:UpdatePanel>
    <div style="display: none;">
        <dx:ASPxGridViewExporter ID="ASPxGridViewExporter1" runat="server"></dx:ASPxGridViewExporter>
        <dx:ASPxButton ID="btnExport" runat="server" ClientInstanceName="btnExport" Text="导出EXCEL" OnClick="btnExport_Click" UseSubmitBehavior="false">
        </dx:ASPxButton>
    </div>
</form>
</body>
</html>